package yunxiangchuan

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type AlbumDecorationsRouter struct {}

// InitAlbumDecorationsRouter 初始化 相册装饰管理 路由信息
func (s *AlbumDecorationsRouter) InitAlbumDecorationsRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	albumDecorationsRouter := Router.Group("albumDecorations").Use(middleware.OperationRecord())
	albumDecorationsRouterWithoutRecord := Router.Group("albumDecorations")
	albumDecorationsRouterWithoutAuth := PublicRouter.Group("albumDecorations")
	{
		albumDecorationsRouter.POST("createAlbumDecorations", albumDecorationsApi.CreateAlbumDecorations)   // 新建相册装饰管理
		albumDecorationsRouter.DELETE("deleteAlbumDecorations", albumDecorationsApi.DeleteAlbumDecorations) // 删除相册装饰管理
		albumDecorationsRouter.DELETE("deleteAlbumDecorationsByIds", albumDecorationsApi.DeleteAlbumDecorationsByIds) // 批量删除相册装饰管理
		albumDecorationsRouter.PUT("updateAlbumDecorations", albumDecorationsApi.UpdateAlbumDecorations)    // 更新相册装饰管理
	}
	{
		albumDecorationsRouterWithoutRecord.GET("findAlbumDecorations", albumDecorationsApi.FindAlbumDecorations)        // 根据ID获取相册装饰管理
		albumDecorationsRouterWithoutRecord.GET("getAlbumDecorationsList", albumDecorationsApi.GetAlbumDecorationsList)  // 获取相册装饰管理列表
	}
	{
	    albumDecorationsRouterWithoutAuth.GET("getAlbumDecorationsPublic", albumDecorationsApi.GetAlbumDecorationsPublic)  // 相册装饰管理开放接口
	}
}
